package net.NingXiaRuiTai.ShortChain.Manager;

import net.NingXiaRuiTai.ShortChain.controller.request.ShortLinkPageRequest;
import net.NingXiaRuiTai.ShortChain.model.ShortLinkDO;

import java.util.Map;

public interface ShortLinkManager {
    /**
     * 新增短链
     *
     */
    int addShortLink(ShortLinkDO shortLinkDO);

    /**
     * 根据短链查找内容
     */
    ShortLinkDO findByShortLinkCode(String shortLinkCode);
    /**
     * 根据短链和accountNO删除
     *
     *
     */
    int del(String shortLinkCode, Long accountNo);

    /**
     * 删除短链
     * @param shortLinkDO
     * @return
     */
    int delShortLink(ShortLinkDO shortLinkDO);

    /**
     * 更新短链
     * @param shortLinkDO
     * @return
     */

    int updateShortLink(ShortLinkDO shortLinkDO);
}
